package com.hiv.client.model.weixin;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 退款通知相应
 * https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_9.shtml
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WeixinRefundNotifyRes implements Serializable {
    public static final WeixinRefundNotifyRes ERR_RES = new WeixinRefundNotifyRes("Fail", "失败");
    public static final WeixinRefundNotifyRes SUC_RES = new WeixinRefundNotifyRes("SUCCESS", "成功");

    /** 错误码，SUCCESS为清算机构接收成功，其他错误码为失败。示例值：SUCCESS */
    private String code = "SUCCESS";
    /** 返回信息，如非空，为错误原因。示例值：系统错误 */
    private String message = "成功";
}
